#include "cppTutorMemoryManagement.h"

#include <iostream>

using namespace std;

CcppTutorMemoryManagement :: CcppTutorMemoryManagement ()
{
    m_npPtr = new int[10];
    cout << "Allocated memory" << endl;
}

CcppTutorMemoryManagement :: ~CcppTutorMemoryManagement ()
{
    // wrong programming, run time crash may occur
    //delete m_npPtr;
    delete [] m_npPtr;
    cout << "deleted memory" << endl;
}


